package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 食谱管理对象 tb_recipe
 *
 * @author 段奇乐
 * @date 2025-01-19
 */
public class Recipe extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 食谱id，主键自增
     */
    private Long recipeId;

    /**
     * 食谱名称
     */
    @Excel(name = "食谱名称")
    private String recipeName;

    /**
     * 早餐食谱
     */
    private String breakfastRecipe;

    /**
     * 午餐食谱
     */
    private String lunchRecipe;

    /**
     * 晚餐食谱
     */
    private String dinnerRecipe;

    /**
     * 所属用户
     */
    private Long userId;

    /**
     * 审核状态
     */
    private Integer verifyFlag;

    /**
     * 咨询营养师id
     */
    private Long dietitianId;

    /**
     * 咨询内容
     */
    private String consultBody;

    /**
     * 退回原因
     */
    private String returnReason;

    /**
     * 咨询时间
     */
    private Date consultTime;

    /**
     * 咨询标志，1：已发送咨询，0：未发送咨询，2：营养师建议的新增食谱
     */
    private Integer consultFlag;

    /**
     * 评分
     */
    private Double star;

    /**
     * 反馈信息
     */
    private String feedbackBody;

    /**
     * 反馈信息是否通过，1：通过，0：未通过
     */
    private Integer isPass;


    public void setRecipeId(Long recipeId) {
        this.recipeId = recipeId;
    }

    public Long getRecipeId() {
        return recipeId;
    }

    public void setRecipeName(String recipeName) {
        this.recipeName = recipeName;
    }

    public String getRecipeName() {
        return recipeName;
    }

    public void setBreakfastRecipe(String breakfastRecipe) {
        this.breakfastRecipe = breakfastRecipe;
    }

    public String getBreakfastRecipe() {
        return breakfastRecipe;
    }

    public void setLunchRecipe(String lunchRecipe) {
        this.lunchRecipe = lunchRecipe;
    }

    public String getLunchRecipe() {
        return lunchRecipe;
    }

    public void setDinnerRecipe(String dinnerRecipe) {
        this.dinnerRecipe = dinnerRecipe;
    }

    public String getDinnerRecipe() {
        return dinnerRecipe;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public Integer getVerifyFlag() {
        return verifyFlag;
    }

    public void setVerifyFlag(Integer verifyFlag) {
        this.verifyFlag = verifyFlag;
    }

    public Long getDietitianId() {
        return dietitianId;
    }

    public void setDietitianId(Long dietitianId) {
        this.dietitianId = dietitianId;
    }

    public String getConsultBody() {
        return consultBody;
    }

    public void setConsultBody(String consultBody) {
        this.consultBody = consultBody;
    }

    public String getReturnReason() {
        return returnReason;
    }

    public void setReturnReason(String returnReason) {
        this.returnReason = returnReason;
    }

    public Date getConsultTime() {
        return consultTime;
    }

    public void setConsultTime(Date consultTime) {
        this.consultTime = consultTime;
    }

    public Integer getConsultFlag() {
        return consultFlag;
    }

    public void setConsultFlag(Integer consultFlag) {
        this.consultFlag = consultFlag;
    }

    public Double getStar() {
        return star;
    }

    public void setStar(Double star) {
        this.star = star;
    }

    public String getFeedbackBody() {
        return feedbackBody;
    }

    public void setFeedbackBody(String feedbackBody) {
        this.feedbackBody = feedbackBody;
    }

    public Integer getIsPass() {
        return isPass;
    }

    public void setIsPass(Integer isPass) {
        this.isPass = isPass;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("recipeId", getRecipeId())
                .append("recipeName", getRecipeName())
                .append("breakfastRecipe", getBreakfastRecipe())
                .append("lunchRecipe", getLunchRecipe())
                .append("dinnerRecipe", getDinnerRecipe())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .append("verifyFlag", getVerifyFlag())
                .append("dietitianId", getDietitianId())
                .append("consultBody", getConsultBody())
                .append("returnReason", getReturnReason())
                .append("consultTime", getConsultTime())
                .append("consultFlag", getConsultFlag())
                .append("star", getStar())
                .append("feedbackBody", getFeedbackBody())
                .append("isPass", getIsPass())
                .toString();
    }
}
